package com.glodon.ggzy.core.utils;

import java.util.Properties;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

public class CustomizedPropertyPlaceholderConfigurer extends
		PropertyPlaceholderConfigurer {
	
	private static Properties myProperties ;;
	    
    @Override 
    protected void processProperties( 
            ConfigurableListableBeanFactory beanFactoryToProcess, 
            Properties props) throws BeansException { 
        super.processProperties(beanFactoryToProcess, props); 
        
        myProperties = props;
    } 
    
    public static String getProperty(String key){
		return myProperties.getProperty(key);
    }
}
